
package dormouse.vfs.ui.actions;

import java.util.ArrayList;
import java.util.List;

import org.apache.commons.vfs2.FileObject;

/**
 * 
 * @author Mark
 *
 */
public class SelectedFileList  {
	
	public SelectedFileList(){
		
	}

	static List<FileObject> fileList = new ArrayList<FileObject>();
	static final int COPY_MODE = 0;
	static final int CUT_MODE = 1;
	static final int DELETE_MODE = 2;
	static final int SYNC_MODE = 3;
	
	static int mode = -1;

	
	public void add(List<FileObject> selected){
		fileList.addAll(selected);
	}
	
	public void add(FileObject file){
		fileList.add(file);
	}
	
	public static void setMode(int _mode){
		mode = _mode;
	}
	
	public int getMode(){
		return mode;
	}
	
	public void remove(FileObject file){
		fileList.remove(file);
	}
	
	

}
